// { "framework": "Vue" }
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	var __vue_exports__, __vue_options__
	var __vue_styles__ = []

	/* styles */
	__vue_styles__.push(__webpack_require__(1)
	)

	/* script */
	__vue_exports__ = __webpack_require__(2)

	/* template */
	var __vue_template__ = __webpack_require__(3)
	__vue_options__ = __vue_exports__ = __vue_exports__ || {}
	if (
	  typeof __vue_exports__.default === "object" ||
	  typeof __vue_exports__.default === "function"
	) {
	if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
	__vue_options__ = __vue_exports__ = __vue_exports__.default
	}
	if (typeof __vue_options__ === "function") {
	  __vue_options__ = __vue_options__.options
	}
	__vue_options__.__file = "/Users/x298017064010/Desktop/web/Weex/HellowWeex/src/views/todo.vue"
	__vue_options__.render = __vue_template__.render
	__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
	__vue_options__._scopeId = "data-v-db1873f8"
	__vue_options__.style = __vue_options__.style || {}
	__vue_styles__.forEach(function (module) {
	  for (var name in module) {
	    __vue_options__.style[name] = module[name]
	  }
	})
	if (typeof __register_static_styles__ === "function") {
	  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
	}

	module.exports = __vue_exports__
	module.exports.el = 'true'
	new Vue(module.exports)


/***/ },
/* 1 */
/***/ function(module, exports) {

	module.exports = {
	  "todo": {
	    "flex": 1
	  },
	  "todo-header": {
	    "flexDirection": "row"
	  },
	  "todo-header-input": {
	    "backgroundColor": "#FFFF00",
	    "width": 600,
	    "height": 100,
	    "paddingLeft": 20
	  },
	  "todo-header-btn": {
	    "backgroundColor": "#FF0000",
	    "width": 150,
	    "height": 100,
	    "justifyContent": "center",
	    "alignItems": "center"
	  },
	  "container": {
	    "width": 600,
	    "height": 250,
	    "marginLeft": 75,
	    "marginTop": 35,
	    "marginBottom": 35,
	    "flexDirection": "column",
	    "justifyContent": "center",
	    "borderWidth": 2,
	    "borderStyle": "solid",
	    "borderColor": "rgb(162,217,192)",
	    "backgroundColor": "rgba(162,217,192,0.2)"
	  },
	  "text": {
	    "fontSize": 50,
	    "textAlign": "center",
	    "color": "#41B883"
	  }
	}

/***/ },
/* 2 */
/***/ function(module, exports) {

	'use strict';

	Object.defineProperty(exports, "__esModule", {
	    value: true
	});
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//
	//

	var storage = weex.requireModule('storage');
	var modal = weex.requireModule('modal');
	var stream = weex.requireModule('stream');

	exports.default = {
	    components: {},
	    data: function data() {
	        return {
	            msg: '',
	            todoList: this.$store.state.todo.todoList
	            //                this.$store.getters.getTodoList
	        };
	    },

	    methods: {
	        addMsg: function addMsg(e) {
	            this.getStarCount('vuejs/vue', function (res) {
	                console.log('res', res);
	            });

	            if (this.msg !== "") {
	                this.$store.dispatch('ADD_TODO_MSG_ASYNC', { msg: this.msg });
	                this.msg = "";
	            } else {
	                modal.alert({
	                    message: '输入不能为空'
	                });
	            }
	        },
	        deleteMsg: function deleteMsg(index) {
	            this.$store.dispatch('DELETE_TODO_MSG_ASYNC', { index: index });
	        },
	        getStarCount: function getStarCount(repo, callback, progressCallback) {
	            return stream.fetch({
	                method: 'GET',
	                type: 'jsonp',
	                url: 'http://app.qdaily.com/app/homes/left_sidebar.json'
	            }, callback, progressCallback);
	        }
	    },
	    created: function created() {
	        this.$store.dispatch('QUERY_TODO_MSG_ASYNC');
	    },
	    mounted: function mounted() {}
	};
	module.exports = exports['default'];

/***/ },
/* 3 */
/***/ function(module, exports) {

	module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
	  return _c('div', {
	    staticClass: ["todo"]
	  }, [_c('div', {
	    staticClass: ["todo-header"]
	  }, [_c('input', {
	    staticClass: ["todo-header-input"],
	    attrs: {
	      "placeholder": "请输入..",
	      "value": (_vm.msg)
	    },
	    on: {
	      "input": function($event) {
	        _vm.msg = $event.target.attr.value
	      }
	    }
	  }), _c('div', {
	    staticClass: ["todo-header-btn"],
	    on: {
	      "click": _vm.addMsg
	    }
	  }, [_c('text', {
	    staticClass: ["ok"]
	  }, [_vm._v("确定")])])]), _c('list', {
	    staticClass: ["list"]
	  }, _vm._l((_vm.todoList), function(value, index) {
	    return _c('cell', {
	      staticClass: ["cell"],
	      appendAsTree: true,
	      attrs: {
	        "append": "tree"
	      }
	    }, [_c('div', {
	      staticClass: ["container"],
	      on: {
	        "click": function($event) {
	          _vm.deleteMsg(index)
	        }
	      }
	    }, [_c('text', {
	      staticClass: ["text"]
	    }, [_vm._v(_vm._s(value))])])])
	  }))])
	},staticRenderFns: []}
	module.exports.render._withStripped = true

/***/ }
/******/ ]);